package com.example.demo.po;




import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.demo.Enum.UserStatusEnum;
import lombok.AllArgsConstructor;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
@AllArgsConstructor
@NoArgsConstructor
@Data
@Component
@TableName("user")
public class User implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

@TableId(type = IdType.AUTO)
    private Long userId;


    private String email;

    private String password;

    private Integer power;

    private String userName;

    private String phone;

    private String city;

    private String province;

    private String country;
    private String zipCode;

    private String userCurrency;

    private UserStatusEnum status;

    private String disableReason;

    private LocalDateTime createTime;

    private LocalDateTime updateTime;
}
